var result = [];

let mapStatus = getLocalValue("mapStatus");




// 需要传入该参数，脚本内部不能访问 window对象；
// var d = window.devicePixelRatio;


var zoom = data.zoom
// if (zoom = 12.5) zoom = 13.5;
var currentCenterLng = data.lng
var currentCenterLat = data.lat
var width = 2880;
var height = 1232;



console.log("计算中" + result);
if (mapStatus.AvoidLayer_pointSim) {
  result = mapStatus.AvoidLayer_pointSim.getAvoidPointsByCenter(currentCenterLng, currentCenterLat, zoom, width, height);

} else {
  result = [];
}

for (var i = 0; i < result.length; i++) {
  result[i].info = result[i].name;
}
console.log("计算中1" + result);


// let mapStatus = getLocalValue("mapStatus");
// console.log("计算结果之前", result);

// console.log(mapStatus.Test0LayerData);
// console.log("计算中" + result);
return result;